package com.ly.wxPay.bean.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 支付-订单表
 *
 * @author luoyun
 * @Date: 2025-11-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("wx_order")
@Schema(description = "支付-订单表")
public class WxOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(type = IdType.ASSIGN_ID)
    @ExcelProperty("主键")
	@Schema(description = "主键")
	private Long id;
    /**
     * 订单标题
     */
    @ExcelProperty("订单标题")
	@Schema(description = "订单标题")
	private String title;
    /**
     * 订单编号
     */
    @ExcelProperty("订单编号")
	@Schema(description = "订单编号")
	private String orderNo;
    /**
     * 用户id
     */
    @ExcelProperty("用户id")
	@Schema(description = "用户id")
	private Long userId;
    /**
     * 产品id
     */
    @ExcelProperty("产品id")
	@Schema(description = "产品id")
	private Long productId;
    /**
     * 订单金额(分)
     */
    @ExcelProperty("订单金额(分)")
	@Schema(description = "订单金额(分)")
	private Integer totalFee;
    /**
     * 订单二维码连接
     */
    @ExcelProperty("订单二维码连接")
	@Schema(description = "订单二维码连接")
	private String codeUrl;
    /**
     * 支付方式
     */
    @ExcelProperty("支付方式")
	@Schema(description = "支付方式")
	private String payType;
    /**
     * 订单状态
     */
    @ExcelProperty("订单状态")
	@Schema(description = "订单状态")
	private String orderStatus;
    /**
     * 创建时间
     */
    @ExcelProperty("创建时间")
	@Schema(description = "创建时间")
	private java.time.LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ExcelProperty("更新时间")
	@Schema(description = "更新时间")
	private java.time.LocalDateTime updateTime;
}
